// Copyright (c) 2024, lanlian and contributors
// For license information, please see license.txt

frappe.ui.form.on("EMS Equipment Acceptance", {
	refresh(frm) {
        // 从设备收货单下推生成设备卡片
        frm.add_custom_button(__('Make EMS Equipment Card'), () => {
            frappe.model.open_mapped_doc({
                method: "ems.equipment_managerment_system.doctype.ems_equipment_acceptance.ems_equipment_acceptance.make_equitment_card",
                frm: cur_frm,
                freeze_message: __("Creating Card ...")
            });
        });
	},
});
